package com.waiting.finalKey;

import java.util.LinkedList;
import java.util.List;

/**
 * @Description final 关键字测试
 * @Author bjweitingting
 * @Date 2019/1/29
 **/
public class Main {
    public static void main(String[] args) {

        final List<String> testFinal=new LinkedList<>();
        testFinal.add("add final string");

        //list.of是java9的功能
      //  List<String> unmodifiableList=List.of("hello","list","of");
    }
}
